package com.mlink.entity;


import java.io.Serializable;

public class UserEntity implements Serializable {
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassWord() {
		return passWord;
	}

	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getOrg() {
		return org;
	}

	public void setOrg(String org) {
		this.org = org;
	}

	public int getRole() {
		return role;
	}

	public void setRole(int role) {
		this.role = role;
	}

	public UserEntity(String userName, String passWord, String nickName, String org, int role) {
		this.userName = userName;
		this.passWord = passWord;
		this.nickName = nickName;
		this.org = org;
		this.role = role;
	}


	public UserEntity() {
		super();
	}
	public UserEntity(int id, String userName, String passWord, String nickName, String org, int role,float workingHour) {
		this.id = id;
		this.userName = userName;
		this.passWord = passWord;
		this.nickName = nickName;
		this.org = org;
		this.role = role;
		this.workingHour = workingHour;
	}

	private String userName;
	private String passWord;
	private String nickName;
	private String org;
	private int role =0;
	private int id;
	private float  workingHour;

	public float getWorkingHour() {
		return workingHour;
	}

	public void setWorkingHour(float workingHour) {
		this.workingHour = workingHour;
	}

	public int getValid() {
		return valid;
	}

	public void setValid(int valid) {
		this.valid = valid;
	}

	private int valid =1;
	@Override
	public String toString() {
		return "User";
	}

}